/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.sync.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 就诊记录时间轴Entity
 * @author xueyx
 * @version 2017-12-02
 */
public class PatientDateList extends DataEntity<PatientDateList> {
	
	private static final long serialVersionUID = 1L;
	private Date date;		// date
    private String dateStr;		// date
	private Long type;		// type
	private String name;		// name
	private String sex;		// sex
	private String age;		// age
	private String idCard;		// id_card
	private String orgId;		// org_id
	private String orgName;		// org_name
    private String imgUrl;
    private String medicalType;
    private String clinicNo;
    private String hisFlag; //门诊主记录是否传到到his  1传成功 0未传
    private String hisType; //区分开单和转诊  1转诊  0开单
	private String diagnosisId; //诊断id
	private String icdName;  //诊断名称
	private String isPublic;
	private String baseInfo;

	public String getBaseInfo() {
		return baseInfo;
	}

	public void setBaseInfo(String baseInfo) {
		this.baseInfo = baseInfo;
	}

	public String getIsPublic() {
		return isPublic;
	}

	public void setIsPublic(String isPublic) {
		this.isPublic = isPublic;
	}

	public String getHisFlag() {return hisFlag;}

	public void setHisFlag(String hisFlag) {this.hisFlag = hisFlag;}

	public String getHisType() {return hisType;}

	public void setHisType(String hisType) {this.hisType = hisType;}

	public String getDiagnosisId() {return diagnosisId;}

	public void setDiagnosisId(String diagnosisId) {this.diagnosisId = diagnosisId;}

	public String getIcdName() {return icdName;}

	public void setIcdName(String icdName) {this.icdName = icdName;}

	public String getClinicNo() {
		return clinicNo;
	}

	public void setClinicNo(String clinicNo) {
		this.clinicNo = clinicNo;
	}

	public PatientDateList() {
		super();
	}

	public PatientDateList(String id){
		super(id);
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@NotNull(message="type不能为空")
	public Long getType() {
		return type;
	}

	public void setType(Long type) {
		this.type = type;
	}
	
	@Length(min=0, max=50, message="name长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="sex长度必须介于 0 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=50, message="age长度必须介于 0 和 50 之间")
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Override
    @Length(min=0, max=64, message="org_id长度必须介于 0 和 64 之间")
	public String getOrgId() {
		return orgId;
	}

	@Override
    public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
	@Length(min=0, max=70, message="org_name长度必须介于 0 和 70 之间")
	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

    public String getDateStr() {
        return dateStr;
    }

    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getMedicalType() {
        return medicalType;
    }

    public void setMedicalType(String medicalType) {
        this.medicalType = medicalType;
    }
}